package com.readpost.service;

import com.github.pagehelper.PageInfo;
import com.readpost.doman.Dto.DraftArticleDto;
import com.readpost.doman.Entity.Articles;
import com.readpost.doman.PageBean;
import com.readpost.doman.Result;
import org.springframework.stereotype.Service;

@Service
public interface ArticlesService  {


    void addArticle(Articles articles);

    //保存草稿
    void createArticle(DraftArticleDto articles , Integer userId);

    Articles contentDraftArticle(Integer userId);

    void publishArticle(DraftArticleDto articles, Integer userid);

    PageInfo<Articles> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);
}
